/* EasyCODE V8 */
/* EasyCODE ( 0 */
#ifndef __MS5611_H
    #define __MS5611_H
    
    // addresses of the device
    #define MS5611_W  0xEE
    #define MS5611_R  0xEF
    
    #define MS5611_RESET 0x1E
    #define MS5611_ADC 0x00
    
    #define MS5611_D1_OSR_256 0x40
    #define MS5611_D1_OSR_512 0x42
    #define MS5611_D1_OSR_1024 0x44
    #define MS5611_D1_OSR_2048 0x46
    #define MS5611_D1_OSR_4096 0x48
    
    #define MS5611_D2_OSR_256 0x50
    #define MS5611_D2_OSR_512 0x52
    #define MS5611_D2_OSR_1024 0x54
    #define MS5611_D2_OSR_2048 0x56
    #define MS5611_D2_OSR_4096 0x58
    
    #define MS5611_PROM_COEF1 0xA2
    #define MS5611_PROM_COEF2 0xA4
    #define MS5611_PROM_COEF3 0xA6  
    #define MS5611_PROM_COEF4 0xA8  
    #define MS5611_PROM_COEF5 0xAA  
    #define MS5611_PROM_COEF6 0xAE      
    
    
    unsigned short MS5611Read(unsigned char address);
    void MS5611Write(unsigned char address, unsigned char data);
    void MS5611(unsigned int *data);
    void MS5611Command(unsigned char command);
#endif 
/* EasyCODE ) */
